home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 February: Tool Chest / Dev.CD Feb 99 TC.toast / What's New? / Development Kits / Installer SDK 1.2.3 / Installer 4.0.8 / Installer 4.0.8 Examples / ResMerge [inrm] Example / Makefile next >
Encoding:
Makefile  |  1998-08-25  |  2.4 KB  |  48 lines  |  [TEXT/MPS ]

  1. # To build this example, choose the "Build…" menu item from within
  2. # the "Build" menu in MPW. When asked for Program Name, type in the 
  3. # script name, in this case "myResMerge" ( without double quotes ) 
  4. # and press the Enter key. Be sure that the Current Working Directory
  5. # for MPW is set to the directory containing this example.
  6.  
  7. # To build the Debugger version of this example, choose the "Build…" 
  8. # menu item from within the "Build" menu in MPW. When asked for Program 
  9. # Name, type in the script name, in this case "myResMerge.debug" ( without 
  10. # double quotes ) and press the Enter key. Be sure that the Current 
  11. # Working Directory for MPW is set to the directory containing this example.
  12.  
  13. # If you want to use this makefile to build an installation from an 
  14. # installer source script ( .r ) with a different filename, just replace 
  15. # "myResMerge" with the filename for your installer source script but 
  16. # leave off the ".r" portion of the source script filename.
  17. scriptName                = myResMerge
  18. debugScriptName            = "{scriptName}.debug"
  19.  
  20. # You may change the following paths as you see fit. Currently all paths 
  21. # are set so that scripts will compile when using the original directory
  22. # layout from the Installer SDK.
  23.  
  24. # You may place the ScriptCheck tool in the 'MPW:Tools' directory. Doing this
  25. # removes the need for the {ScriptCheckDir} variable within the makefile.
  26. ScriptCheckDir            = ::::Upgrader 1.2.1 & Engines:Installer Engine 4.5.1:Tools:Released:ScriptCheck 4.2b6:
  27.  
  28. # You may place "InstallerTypes.r" file in the 'MPW:Interfaces:RIncludes:' directory. 
  29. # Doing this removes the need for the {InstallerRIncDir} variable or -i specification
  30. # for Rez within the makefile.
  31. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  32.  
  33. # You may place "Installer Debugger.r" file in the 'MPW:Interfaces:RIncludes:' directory. 
  34. # Doing this removes the need for the {InstallerDebuggerDir} variable within the makefile.
  35. InstallerDebuggerDir    = :::Installer Debugger 4.0.8:
  36.  
  37. "{debugScriptName}" ƒ "{scriptName}"
  38.     Duplicate -y {scriptName} "{scriptName} w/ Debugger"
  39.     DeRez "{InstallerDebuggerDir}Installer Debugger.rsrc" | Rez -m -append -o "{scriptName} w/ Debugger"
  40.  
  41. {scriptName} ƒ "{scriptName}.r"
  42.     set theTime    "'`date -d -s` 12:00:00 PM'"
  43.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  44.     SetFile -a b -d {theTime} {scriptName}
  45.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  46.     SetFile -m {theTime} "{scriptName}"
  47.  
  48.